package com.hqyj.controller;

import com.hqyj.pojo.UserInfo;
import com.hqyj.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/login")
public class UserInfoController {


  @Autowired
  private UserInfoService userInfoService;

  @RequestMapping("/list")
  public HashMap<String,Object> list(UserInfo userInfo){

    HashMap<String, Object> list = userInfoService.list(userInfo.getUserName(),userInfo.getUserPwd());

    return list;

  }



}
